Adds a new line to a Return by stock code.
Method | AddItemToReturnByStockCode |
The request body is of type AddItemToReturnByStockCode.
Name | Description | Data Type |
---|---|---|
StockCode | xml:string | |
Qty | xml:int | |
UOM | xml:anyType | |
PurchaseDate | xml:dateTime | |
SerialNumber | xml:string | |
Options | xml:string |
The response body is of type AddItemToReturnByStockCodeResponse.
Name | Description | Data Type |
---|---|---|
AddItemToReturnByStockCodeResult | A string value containing a JSON object. { "Data": { "FirstName": "Susan", "LastName": "Brown", "Email": "sbrown@bikesblades.com", "Phone": "", "CustomerNumber": "000000000000013", "CustomerName": "Out of Africa", "ItemCount": 1, "TotalWeight": 10.0, "TotalVolume": 0.3, "LastUpdated": "2022-11-04T16:15:27.833", "CustomData": {}, "Branch": "", "Fax": "", "UserField1": "", "SpecialInstrs": "", "OrderType": "", "AlternateKey": "", "ServiceTicket": "", "ShippingAddress": { "FirstName": "Susan", "LastName": "Brown", "Address1": "254 Southway Drive", "Address2": "Southern Bypass", "Address3": "South, Sandton", "City": "", "State": "", "Zip": "2196", "Country": "", "MultiShipCode": "", "Area": "" }, "Details": [{ "Row": 1, "ID": 13265, "Item_ID": 579, "StockCode": "A100", "NonStockItem": false, "Description": "Boys 15 Speed Mountain Bike", "SerialNumber": "Test1011", "Quantity": 1, "UOM": "EA", "UnitType": 1, "UnitWeight": 10.0, "UnitVolume": 0.3, "ReturnType": "", "ProblemCode": "", "ProblemNotes": "", "InvoiceNumber": "", "OrderNumber": "", "CustomData": {}, "LastUpdated": "2022-11-04T16:15:27.843", "WarrantyDate": null, "ReturnByDate": null, "Lot": "", "UserDefined1": "", "UserDefined2": "", "PurchaseDate": "2022-11-04", "Photo1": "/Ecommerce/site/images/Photo1/A100.jpg", "Photo2": "/Ecommerce/site/images/Photo2/A100.jpg" }] }, "LookupData": { "DefaultProblemCode": "BR", "ProblemCodes": [{ "Code": "BR", "DisplayText": "Broken" }, { "Code": "CL", "DisplayText": "Certification Limit" }, { "Code": "CM", "DisplayText": "Changed Mind" }, { "Code": "FT", "DisplayText": "Faulty" }, { "Code": "OS", "DisplayText": "Over Supply" }, { "Code": "US", "DisplayText": "Unsuitable" }, { "Code": "WC", "DisplayText": "Wrong Color" }, { "Code": "WI", "DisplayText": "Wrong Item" }] }, "Result": { "Success": true, "Message": "The item has been successfully added to the return.", "ElapsedTime": "81 ms" } }
| xml:string |